package com.fr.base;

public class FormData
{
  public static int LEFT_TOP = 0;
  public static int RIGHT_BOTTOM = 1;
  public static int LEFT_BOTTOM = 2;
  public static int RIGHT_TOP = 3;
  public float left;
  public float right;
  public float top;
  public float bottom;

  public FormData()
  {
    this.left = -1.0F;
    this.right = -1.0F;
    this.top = -1.0F;
    this.bottom = -1.0F;
  }

  public FormData(float paramFloat1, float paramFloat2)
  {
    this(paramFloat1, paramFloat2, LEFT_TOP);
  }

  public FormData(float paramFloat1, float paramFloat2, int paramInt)
  {
    this.left = -1.0F;
    this.right = -1.0F;
    this.top = -1.0F;
    this.bottom = -1.0F;
    switch (paramInt)
    {
    case 0:
      this.left = paramFloat1;
      this.top = paramFloat2;
      break;
    case 1:
      this.right = paramFloat1;
      this.bottom = paramFloat2;
      break;
    case 2:
      this.left = paramFloat1;
      this.bottom = paramFloat2;
      break;
    case 3:
      this.right = paramFloat1;
      this.top = paramFloat2;
      break;
    default:
      this.left = paramFloat1;
      this.top = paramFloat2;
    }
  }
}